<h1>添加图片&nbsp;&nbsp;&nbsp;
<?php 
echo $this->Html->link('图片列表',array('plugin'=>'album','controller'=>'albumpics','action'=>'index',$album_id));
?>
&nbsp;&nbsp;&nbsp;
<?php 
echo $this->Html->link('相册列表',array('plugin'=>'album','controller'=>'albums','action'=>'index'));
?>
</h1>
<?php
echo $this->form->create('AlbumPic',array('enctype' => 'multipart/form-data'));
echo $this->form->input('user_id',array('label' => '用户id','value'=>$Auth['id'],'type'=>'hidden'));

echo $this->form->input('album_id',array('label' => '相册ID','value'=>$album_id,'type'=>'hidden'));
//type_id：0表示系统默认相册 1为用户创建相册
echo $this->form->input('type_id',array('label' => '类型','type'=>'hidden','options'=>array(0,1),'selected'=>1,'disabled'=>TRUE));

echo $this->Form->input('AlbumPic.file', array('label'=>'','type' => 'file', 'multiple'));
echo $this->form->input('title',array('label' => '图片名'));
echo $this->form->input('description', array('label'=>'图片描述','rows' => '3'));

echo $this->form->end('Save Post');
?>
